package security_w1;

public class program {

	
	
	public static void main(String Args[])
	{
		crypt cr = new crypt();
		if(Args[0].equals("Encryption"))
		{
		String Message = Args[1];
		String Key = Args[2];
		String initVector = Args[3];
		cr.readData(Message,Key,initVector);
		cr.encrypt(Message);
		}
		else{
			cr.initDictionary();
			String Message = Args[1];
			String initVector = Args[2];
			cr.readEncryption(Message, initVector);
			//cr.decypher();
			cr.permuteActivate(Message);
		}
	}
	
	
}
